In this article we will see how we can set the date range to the QCalendarWidget. The date range of QCalendarWidget restricts the user selection, i.e. the user can only select dates within the specified date range. Rest of the dates get disabled....
In this article we will see how we can set the window flags of the QCalendarWidget. Window flags are a combination of a type (e.g. Qt::Dialog) and zero or more hints to the window system (e.g. Qt::FramelessWindowHint).If the calendar had type Qt::Widget or Qt::SubWindow and becomes a window (Qt::Window, Qt::Dialog, etc.), it is put at position (0, 0) on the desktop. If the widget is a window and becomes a Qt::Widget or Qt::SubWindow, it is put at position (0, 0) relative to its parent widget....
In this article we will see how we can get the frame size of the QCalendarWidget. Frame size o holds the size of the calendar including any window frame, by default this property contains a value that depends on the user’s platform and screen geometry....
In this article, we will see how we can find the children of QCalendarWidget using the type of the child/children. Calendar is not a stand alone widget it consists of small widgets that are called child for example the dates and spin box for year and drop down menu for the month collectively make the calendar. We can find the child using type with the help of findChild method but this method only return single widget therefore if there is more than one child with similar type then problem occurs....
In this article we will see how we can get the window modified property of QCalendarWidget. Window modified property holds whether the calendar shown in the window has unsaved changes or not, by default this property is False although we can change this with the help of setWindowModified method....
In this article we will see how we can set the mask to the QCalendarWidget. Mask are basically used to hide the calendar, with the help of mask user will not be able to see the whole calendar although the calendar will still exist but there will be mask on it....
In this article we will see how we can set the content margin to the QCalendarWidget. By default content margin value is zero. Margin is the extra space between the content and the exterior part, margin gives some space from the exterior parts....
In this article we will see how we can set the enabled property to the QCalendarWidget. Enabled property holds whether the calendar is enabled or not. In general an enabled calendar handles keyboard and mouse events and a disabled calendar does not....
In this article we will see how we can find the child of QCalendarWidget using the type of the child. Calendar is not a stand-alone widget it consist of small widgets that are called a child, for example, the dates and spin box for year and drop-down menu for the month collectively make the calendar...
In this article we will see how we can insert QAction to the QCalendarWidget. In order to do this we use insertAction method, this method inserts the action to the calendar’s list of actions, before the given action. It appends the action if before is None or before is not a valid action for this widget....
In this article we will see how we can get the geometry of the QCalendarWidget. Geometry basically refer to the position and the size of the calendar. We can change the size of calendar with the help of resize method and position can be changed with the help of move method. Combining these two methods made the geometry of calendar. We can change/set geometry to the calendar with the help of setGeometry method....
In this article, we will see how we can continue the functions of the QCalendarWidget. Stopping function means that the QCalendarWidget will not be able to do a single thing like selection changing date etc. Disabling the calendar do not delete or hide the widget from the screen. Disabling is used to stop the user from doing any changes on it, but by enabling it will resume all the functions....